package com.snda.sc.web;

import java.io.IOException;

import javax.annotation.Resource;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;
import org.springframework.web.HttpRequestHandler;

import com.snda.sc.auth.IAuthProcessor;

@Component("loginServlet")
public class LoginServlet implements HttpRequestHandler {

	@Resource(name = "authProcessor")
	private IAuthProcessor processor;

	@Override
	public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		processor.process(request, response);
	}
}
